package ooday04;

public class Dog extends Animal implements Swim{
    Dog(String name,String color,int age){
        super(name,color,age);
    }
     void eat(){
        System.out.println("它叫"+name+"今年"+age+"岁了，一身"+color+"正在910");
     }
     void lookHome(){
        System.out.println(name+"正在看家");
     }
     public void Swim(){
        System.out.println(name+"在浴缸里洗刷刷");
     }



}
